﻿<div ng-controller="userWantBillsController">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-inverse">
                <div class="panel-heading">
                    <div class="panel-heading-btn">
                        <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
                    </div>
                    <h4 class="panel-title">求购录入</h4>
                </div>
                <div class="panel-body">
                    <div class="form-inline filter-option">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="pull-right">
                                    <select class="form-control" ng-model="filter.billTypeId">
                                        <option value="">请选择票据类型</option>
                                        <option value="">全部</option>
                                        <option value="101">电票</option>
                                        <option value="102">纸票</option>
                                    </select>
                                    <select class="form-control" ng-model="model.bill_price" ng-change="checkBillPrice()">
                                        <option ng-model="model.bill_price" value="">请选择票面金额</option>
                                        <option ng-model="model.bill_price" value="">全部</option>
                                        <option ng-model="model.bill_price">0-100万</option>
                                        <option ng-model="model.bill_price">100万-300万</option>
                                        <option ng-model="model.bill_price">300万-1000万</option>
                                        <option ng-model="model.bill_price">大于1000万</option>
                                    </select>
                                    <select class="form-control" ng-model="filter.biddingType">
                                        <option value="">请选择竞价方式</option>
                                        <option value="">全部</option>
                                        <option value="3212">自由竞价</option>
                                        <option value="3210">一口价</option>
                                    </select>
                                    <select class="form-control" ng-model="model.bill_date" ng-change="checkBillDate()">
                                        <option ng-model="model.bill_date" value="">请选择到期期限</option>
                                        <option ng-model="model.bill_date" value="">全部</option>
                                        <option ng-model="model.bill_date">0-90天</option>
                                        <option ng-model="model.bill_date">90天-180天</option>
                                        <option ng-model="model.bill_date">180天-360天</option>
                                        <option ng-model="model.bill_date">半年(170天-184天)</option>
                                        <option ng-model="model.bill_date">足年(350天-365天)</option>
                                    </select>
                                    <select class="form-control" ng-model="filter.acceptType">
                                        <option value="">请选择承兑类型</option>
                                        <option value="">全部</option>
                                        <option value="401">国股</option>
                                        <option value="402">城商</option>
                                        <option value="404">三农</option>
                                        <option value="405">村镇</option>
                                        <option value="406">外资</option>
                                        <option value="407">财务公司</option>
                                        <option value="408">商票</option>
                                    </select>
                                    <button class="btn btn-sm btn-info" ng-click="reflash()"><i class="fa fa-search"></i> 筛选</button>
                                    <button class="btn btn-info btn-xs" ng-click="addWant()"><i class="fa fa-edit"></i>添加</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <table id="data-table" ng-table="tableParams" template-pagination="template/pagination.html" class="table table-striped table-bordered table-hover table-condensed">
                        <tr ng-repeat="item in $data">
                            <td data-title="'序号'" width="10%" class="text-center">{{ first + $index }}</td>
                            <td data-title="'发布时间'" sortable="'create_time'" class="text-center">{{ item.create_time | date: 'MM/dd HH:mm'}}</td>
                            <td data-title="'票据类型'" sortable="'bill_type_id'" class="text-center">{{ item.bill_type_id == 101?'电票':'纸票' }}</td>
                            <td data-title="'票面金额'" sortable="'bill_sum_price'" class="text-center"><span ng-if="item.min_face_price && item.max_face_price">{{ item.min_face_price }}--{{ item.max_face_price }}</span><span ng-if="!item.min_face_price || !item.max_face_price">不限</span></td>
                            <td data-title="'求购数量'" sortable="'want_numbe'" class="text-center">{{ !item.want_numbe ? '不限' : item.want_numbe }}</td>
                            <td data-title="'承兑机构'" sortable="'acceptor_type_id'" class="text-center"><span ng-if="!item.acceptor_type_id">不限</span><span ng-if="item.acceptor_type_id">{{ item.acceptor_type_name | myfilter | limitTo:11 }}</span></td>
                            <td data-title="'竞价方式'" sortable="'bidding_mode'" class="text-center"><span ng-if="item.bidding_mode == null||item.bidding_mode == ''">一口价/自由竞价</span><span ng-if="item.bidding_mode != null&&item.bidding_mode != ''">{{ item.bidding_mode == 3210 ? '一口价' : '自由竞价'  }}</span></td>
                            <td data-title="'每十万扣'" sortable="'ten_rate'" class="text-center"><span ng-if="item.ten_rate == null||item.ten_rate == ''">每十万扣款不限</span><span ng-if="item.ten_rate != null&&item.ten_rate != ''">每十万扣款{{item.ten_rate}}元</span></td>
                            <td data-title="'到期时间'" sortable="'min_dead_date'" class="text-center"><span ng-if="(item.min_dead_date != null&&item.min_dead_date != '') && (item.max_dead_date != null&&item.max_dead_date != '')">{{ item.min_dead_date | date: 'yyyy/MM/dd' }}--{{ item.max_dead_date | date: 'yyyy/MM/dd' }}</span><span ng-if="(item.min_dead_date == null||item.min_dead_date == '') || (item.max_dead_date == null||item.max_dead_date == '')">不限</span></td>

                            <td class="text-center width-100 text-nowrap">
                                <button class="btn btn-info btn-xs" ng-click="editWant(item)"><i class="fa fa-edit"></i>修改</button>
                                <button class="btn btn-success btn-xs" ng-click="resd(item)"><i class="fa fa-edit"></i> 详细</button>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="modal fade" id="modal-add">
                    <div class="modal-dialog" style="width:1100px">
                        <div class="modal-content">
                            <ng-form name="checkForm" novalidate>
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                                    <h4 class="modal-title"><i class="fa fa-lg fa-edit text-success"></i>发布求购</h4>
                                </div>
                                <div class="modal-body">
                                    <div class="allBasicInfo">
                                        <div class="billTypeMenu">
                                            <span ng-click="electricBill()" ng-class="{'accountType_action':filter.showElectricBill == 1}">电票求购</span>
                                            <span ng-click="paperBill()" ng-class="{'accountType_action':filter.showPaperBill == 1}">纸票求购</span>
                                        </div>
                                        <div class="billBasicInfo" ng-if="filter.showElectricBill == 1">
                                            <div class="lookingforInfo">
                                                <p class="basicInfoTitle">求购信息</p>
                                                <div class="inputInfo">
                                                    <p>
                                                        <span><label>票面金额</label><input type="text" ng-model="model.min_face_price" placeholder="最多100000" ng-change="changeMinPrice()" />&nbsp;&nbsp;———&nbsp;&nbsp;<input type="text" ng-model="model.max_face_price" placeholder="最多100000" ng-change="changeMaxPrice()" />万元</span>
                                                        <span><label>求购数量</label><input type="number" ng-model="model.want_numbe" /></span>
                                                    </p>
                                                    <p>
                                                        <span class="deadTime">
                                                            <label>到期时间</label>
                                                            <input type="text" ng-model="model.min_dead_date" readonly uib-datepicker-popup is-open="datepicker.bill_deadline_time1" ng-click="datepicker.bill_deadline_time1=!datepicker.bill_deadline_time1" required />
                                                            &nbsp;&nbsp;———&nbsp;&nbsp;
                                                            <input type="text" ng-model="model.max_dead_date" readonly uib-datepicker-popup is-open="datepicker.bill_deadline_time2" ng-click="datepicker.bill_deadline_time2=!datepicker.bill_deadline_time2" required />
                                                        </span>
                                                        <span><label>每十万扣款</label><input type="text" ng-model="model.ten_rate" />元</span>
                                                    </p>
                                                    <div class="acceptor">
                                                        <label style="float:left;width:95px;margin-top: 6px;">竞价方式</label>
                                                        <select class="form-control" ng-model="model.bidding_mode" style="width:12%;">
                                                            <option value="">全部</option>
                                                            <option value="3210">一口价</option>
                                                            <option value="3212">自由竞价</option>
                                                        </select>
                                                    </div>
                                                    <div class="acceptor">
                                                        <label>承兑机构</label>
                                                        <p class="col-md-12 col-sm-12 col-xs-12 filter-check">
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox check-one">
                                                                <input type="checkbox" ng-model="filter.acceptorTypeAll" ng-change="acceptorTypeChangeAll()"> <span>全部</span>
                                                            </label>
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox" ng-repeat="item in acceptorTypeData3">
                                                                <input type="checkbox" value="{{item.code}}" ng-model="item.checked" ng-change="acceptorTypeChange()"> <span>{{ item.constant_name }}</span>
                                                            </label>
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox" ng-repeat="item in acceptorTypeData4 track by $index">
                                                                <input type="checkbox" value="{{item.code}}" ng-model="item.checked" ng-change="acceptorTypeChange()"> <span>{{ item.constant_name | limitTo: 2 }}</span>
                                                            </label>
                                                        </p>
                                                    </div>
                                                    <div class="acceptor">
                                                        <label>瑕疵要求</label>
                                                        <p class="col-md-12 col-sm-12 col-xs-12 filter-check">
                                                            <label ng-repeat="item in billFlawData" style="width:12%;">
                                                                <input type="checkbox" ng-model="item.checked" class="check-box" ng-click="billFlawChange(item)"> {{ item.constant_name }}
                                                            </label>
                                                        </p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="enterpriseInfo">
                                                <p class="basicInfoTitle">企业信息</p>
                                                <div class="inputInfo">
                                                    <p><label>企业名称:</label><input type="text" ng-model="paper.enterprise_name" /></p>
                                                    <p>
                                                        <span><label>联系人姓名:</label><input type="text" ng-model="model.contact_name" /></span>
                                                        <span><label>联系方式:</label><input type="text" ng-model="model.contact_phone" /></span>
                                                    </p>
                                                </div>
                                            </div>
                                            <div class="remarkInfo">
                                                <p class="basicInfoTitle">备注说明</p>
                                                <div class="inputInfo">
                                                    <p>
                                                        <textarea placeholder="请输入其他需要特别说明的求购信息" ng-model="model.remark"></textarea>
                                                    </p>
                                                    <p class="submitBtn">
                                                        <button ng-click="updataInfo()">发布</button>
                                                        <button>取消</button>
                                                    </p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="billBasicInfo" ng-if="filter.showPaperBill == 1">
                                            <div class="lookingforInfo">
                                                <p class="basicInfoTitle">求购信息</p>
                                                <div class="inputInfo">
                                                    <p>
                                                        <span><label>票面金额</label><input type="text" ng-model="paper.min_face_price" placeholder="最多100000" ng-change="paperChangeMinPrice()" />&nbsp;&nbsp;———&nbsp;&nbsp;<input type="text" ng-model="paper.max_face_price" placeholder="最多100000" ng-change="paperChangeMaxPrice()" />万元</span>
                                                        <span><label>求购数量</label><input type="number" ng-model="paper.want_numbe" /></span>
                                                    </p>
                                                    <p>
                                                        <span class="deadTime">
                                                            <label>到期时间</label>
                                                            <input type="text" ng-model="paper.min_dead_date" readonly uib-datepicker-popup is-open="datepicker.bill_deadline_time1" ng-click="datepicker.bill_deadline_time1=!datepicker.bill_deadline_time1" required />
                                                            &nbsp;&nbsp;———&nbsp;&nbsp;
                                                            <input type="text" ng-model="paper.max_dead_date" readonly uib-datepicker-popup is-open="datepicker.bill_deadline_time2" ng-click="datepicker.bill_deadline_time2=!datepicker.bill_deadline_time2" required />
                                                        </span>
                                                        <span><label>每十万扣款</label><input type="text" ng-model="paper.ten_rate" />元</span>
                                                    </p>
                                                    <div class="acceptor">
                                                        <label style="float:left;width:95px;margin-top: 6px;">竞价方式</label>
                                                        <select class="form-control" ng-model="paper.bidding_mode" style="width:12%;">
                                                            <option value="">全部</option>
                                                            <option value="3210">一口价</option>
                                                            <option value="3212">自由竞价</option>
                                                        </select>
                                                    </div>
                                                    <div class="acceptor">
                                                        <label>承兑机构</label>
                                                        <p class="col-md-12 col-sm-12 col-xs-12 filter-check">
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox check-one">
                                                                <input type="checkbox" ng-model="filter.acceptorTypeAll" ng-change="acceptorTypeChangeAll()"> <span>全部</span>
                                                            </label>
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox" ng-repeat="item in acceptorTypeData3">
                                                                <input type="checkbox" value="{{item.code}}" ng-model="item.checked" ng-change="acceptorTypeChange()"> <span>{{ item.constant_name }}</span>
                                                            </label>
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox" ng-repeat="item in acceptorTypeData4 track by $index">
                                                                <input type="checkbox" value="{{item.code}}" ng-model="item.checked" ng-change="acceptorTypeChange()"> <span>{{ item.constant_name | limitTo: 2 }}</span>
                                                            </label>
                                                        </p>
                                                    </div>
                                                    <div class="acceptor" style="height:72px;">
                                                        <label>瑕疵要求</label>
                                                        <p class="col-md-12 col-sm-12 col-xs-12 filter-check">
                                                            <label ng-repeat="item in billFlawData2" style="width:13%;">
                                                                <input type="checkbox" ng-model="item.checked" class="check-box" ng-click="billFlawChange2(item)"> {{ item.constant_name }}
                                                            </label>
                                                        </p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="enterpriseInfo">
                                                <p class="basicInfoTitle">企业信息</p>
                                                <div class="inputInfo">
                                                    <p><label>企业名称:</label><input type="text" ng-model="paper.enterprise_name" /></p>
                                                    <p>
                                                        <span><label>联系人姓名:</label><input type="text" ng-model="paper.contact_name" /></span>
                                                        <span><label>联系方式:</label><input type="text" ng-model="paper.contact_phone" /></span>
                                                    </p>
                                                    <p style="float:left;" ng-model="paper.bill_location_id">
                                                        <label>交易地点:</label>
                                                        <div class="col-md-8 form-inline" style="padding-left:0;">
                                                            <select class="form-control width-150" ng-model="paper.product_province_id" ng-options="item.id as item.address_name for item in provinceData" ng-change="provinceChange()"><option value="">省/直辖市</option></select>
                                                            <select class="form-control width-150" ng-model="paper.product_location_id" ng-options="item.id as item.address_name for item in cityData"><option value="">市/区</option></select>
                                                        </div>
                                                    </p>
                                                </div>
                                            </div>
                                            <div class="remarkInfo">
                                                <p class="basicInfoTitle">备注说明</p>
                                                <div class="inputInfo">
                                                    <p>
                                                        <textarea placeholder="请输入其他需要特别说明的求购信息" ng-model="paper.remark"></textarea>
                                                    </p>
                                                    <p class="submitBtn">
                                                        <button ng-click="updataPaperInfo()" class="changeFilter">发布</button>
                                                        <button data-dismiss="modal">取消</button>
                                                    </p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-sm btn-white" data-dismiss="modal"><i class="fa fa-share-square-o"></i> 关闭</button>
                                </div>
                            </ng-form>
                        </div>
                    </div>
                </div>

                <div class="modal fade" id="modal-edit">
                    <div class="modal-dialog" style="width:1100px">
                        <div class="modal-content">
                            <ng-form name="checkForm" novalidate>
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                                    <h4 class="modal-title"><i class="fa fa-lg fa-edit text-success"></i>发布求购</h4>
                                </div>
                                <div class="modal-body">
                                    <div class="allBasicInfo">
                                        <div class="billTypeMenu">
                                            <span ng-click="electricBill()" ng-class="{'accountType_action':filter.showElectricBill == 1}">电票求购</span>
                                            <span ng-click="paperBill()" ng-class="{'accountType_action':filter.showPaperBill == 1}">纸票求购</span>
                                        </div>
                                        <div class="billBasicInfo" ng-if="filter.showElectricBill == 1">
                                            <div class="lookingforInfo">
                                                <p class="basicInfoTitle">求购信息</p>
                                                <div class="inputInfo">
                                                    <p>
                                                        <span><label>票面金额</label><input type="text" ng-model="model.min_face_price" placeholder="最多100000" ng-change="changeMinPrice()" />&nbsp;&nbsp;———&nbsp;&nbsp;<input type="text" ng-model="model.max_face_price" placeholder="最多100000" ng-change="changeMaxPrice()" />万元</span>
                                                        <span><label>求购数量</label><input type="number" ng-model="model.want_numbe" /></span>
                                                    </p>
                                                    <p>
                                                        <span class="deadTime">
                                                            <label>到期时间</label>
                                                            <input type="text" ng-model="model.min_dead_date" readonly uib-datepicker-popup is-open="datepicker.bill_deadline_time1" ng-click="datepicker.bill_deadline_time1=!datepicker.bill_deadline_time1" required />
                                                            &nbsp;&nbsp;———&nbsp;&nbsp;
                                                            <input type="text" ng-model="model.max_dead_date" readonly uib-datepicker-popup is-open="datepicker.bill_deadline_time2" ng-click="datepicker.bill_deadline_time2=!datepicker.bill_deadline_time2" required />
                                                        </span>
                                                        <span><label>每十万扣款</label><input type="text" ng-model="model.ten_rate" />元</span>
                                                    </p>
                                                    <div class="acceptor">
                                                        <label style="float:left;width:95px;margin-top: 6px;">竞价方式</label>
                                                        <select class="form-control" ng-model="model.bidding_mode" style="width:12%;">
                                                            <option value="">全部</option>
                                                            <option value="3210">一口价</option>
                                                            <option value="3212">自由竞价</option>
                                                        </select>
                                                    </div>
                                                    <div class="acceptor">
                                                        <label>承兑机构</label>
                                                        <p class="col-md-12 col-sm-12 col-xs-12 filter-check">
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox check-one">
                                                                <input type="checkbox" ng-model="filter.acceptorTypeAll" ng-change="acceptorTypeChangeAll()"> <span>全部</span>
                                                            </label>
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox" ng-repeat="item in acceptorTypeData3">
                                                                <input type="checkbox" value="{{item.code}}" ng-model="item.checked" ng-change="acceptorTypeChange()"> <span>{{ item.constant_name }}</span>
                                                            </label>
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox" ng-repeat="item in acceptorTypeData4 track by $index">
                                                                <input type="checkbox" value="{{item.code}}" ng-model="item.checked" ng-change="acceptorTypeChange()"> <span>{{ item.constant_name | limitTo: 2 }}</span>
                                                            </label>
                                                        </p>
                                                    </div>
                                                    <div class="acceptor">
                                                        <label>瑕疵要求</label>
                                                        <p class="col-md-12 col-sm-12 col-xs-12 filter-check">
                                                            <label ng-repeat="item in billFlawData" style="width:12%;">
                                                                <input type="checkbox" ng-model="item.checked" class="check-box" ng-click="billFlawChange(item)"> {{ item.constant_name }}
                                                            </label>
                                                        </p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="enterpriseInfo">
                                                <p class="basicInfoTitle">企业信息</p>
                                                <div class="inputInfo">
                                                    <p><label>企业名称:</label><input type="text" ng-model="paper.enterprise_name" /></p>
                                                    <p>
                                                        <span><label>联系人姓名:</label><input type="text" ng-model="model.contact_name" /></span>
                                                        <span><label>联系方式:</label><input type="text" ng-model="model.contact_phone" /></span>
                                                    </p>
                                                </div>
                                            </div>
                                            <div class="remarkInfo">
                                                <p class="basicInfoTitle">备注说明</p>
                                                <div class="inputInfo">
                                                    <p>
                                                        <textarea placeholder="请输入其他需要特别说明的求购信息" ng-model="model.remark"></textarea>
                                                    </p>
                                                    <p class="submitBtn">
                                                        <button ng-click="editAdd()" class="changeFilter">修改</button>
                                                        <button>取消</button>
                                                    </p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="billBasicInfo" ng-if="filter.showPaperBill == 1">
                                            <div class="lookingforInfo">
                                                <p class="basicInfoTitle">求购信息</p>
                                                <div class="inputInfo">
                                                    <p>
                                                        <span><label>票面金额</label><input type="text" ng-model="paper.min_face_price" placeholder="最多100000" ng-change="paperChangeMinPrice()" />&nbsp;&nbsp;———&nbsp;&nbsp;<input type="text" ng-model="paper.max_face_price" placeholder="最多100000" ng-change="paperChangeMaxPrice()" />万元</span>
                                                        <span><label>求购数量</label><input type="number" ng-model="paper.want_numbe" /></span>
                                                    </p>
                                                    <p>
                                                        <span class="deadTime">
                                                            <label>到期时间</label>
                                                            <input type="text" ng-model="paper.min_dead_date" readonly uib-datepicker-popup is-open="datepicker.bill_deadline_time1" ng-click="datepicker.bill_deadline_time1=!datepicker.bill_deadline_time1" required />
                                                            &nbsp;&nbsp;———&nbsp;&nbsp;
                                                            <input type="text" ng-model="paper.max_dead_date" readonly uib-datepicker-popup is-open="datepicker.bill_deadline_time2" ng-click="datepicker.bill_deadline_time2=!datepicker.bill_deadline_time2" required />
                                                        </span>
                                                        <span><label>每十万扣款</label><input type="text" ng-model="paper.ten_rate" />元</span>
                                                    </p>
                                                    <div class="acceptor">
                                                        <label style="float:left;width:95px;margin-top: 6px;">竞价方式</label>
                                                        <select class="form-control" ng-model="paper.bidding_mode" style="width:12%;">
                                                            <option value="">全部</option>
                                                            <option value="3210">一口价</option>
                                                            <option value="3212">自由竞价</option>
                                                        </select>
                                                    </div>
                                                    <div class="acceptor">
                                                        <label>承兑机构</label>
                                                        <p class="col-md-12 col-sm-12 col-xs-12 filter-check">
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox check-one">
                                                                <input type="checkbox" ng-model="filter.acceptorTypeAll" ng-change="acceptorTypeChangeAll()"> <span>全部</span>
                                                            </label>
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox" ng-repeat="item in acceptorTypeData3">
                                                                <input type="checkbox" value="{{item.code}}" ng-model="item.checked" ng-change="acceptorTypeChange()"> <span>{{ item.constant_name }}</span>
                                                            </label>
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox" ng-repeat="item in acceptorTypeData4 track by $index">
                                                                <input type="checkbox" value="{{item.code}}" ng-model="item.checked" ng-change="acceptorTypeChange()"> <span>{{ item.constant_name | limitTo: 2 }}</span>
                                                            </label>
                                                        </p>
                                                    </div>
                                                    <div class="acceptor" style="height:72px;">
                                                        <label>瑕疵要求</label>
                                                        <p class="col-md-12 col-sm-12 col-xs-12 filter-check">
                                                            <label ng-repeat="item in billFlawData2" style="width:13%;">
                                                                <input type="checkbox" ng-model="item.checked" class="check-box" ng-click="billFlawChange2(item)"> {{ item.constant_name }}
                                                            </label>
                                                        </p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="enterpriseInfo">
                                                <p class="basicInfoTitle">企业信息</p>
                                                <div class="inputInfo">
                                                    <p><label>企业名称:</label><input type="text" ng-model="paper.enterprise_name" /></p>
                                                    <p>
                                                        <span><label>联系人姓名:</label><input type="text" ng-model="paper.contact_name" /></span>
                                                        <span><label>联系方式:</label><input type="text" ng-model="paper.contact_phone" /></span>
                                                    </p>
                                                    <p style="float:left;" ng-model="paper.bill_location_id">
                                                        <label>交易地点:</label>
                                                        <div class="col-md-8 form-inline" style="padding-left:0;">
                                                            <select class="form-control width-150" ng-model="paper.product_province_id" ng-options="item.id as item.address_name for item in provinceData" ng-change="provinceChange()"><option value="">省/直辖市</option></select>
                                                            <select class="form-control width-150" ng-model="paper.product_location_id" ng-options="item.id as item.address_name for item in cityData"><option value="">市/区</option></select>
                                                        </div>
                                                    </p>
                                                </div>
                                            </div>
                                            <div class="remarkInfo">
                                                <p class="basicInfoTitle">备注说明</p>
                                                <div class="inputInfo">
                                                    <p>
                                                        <textarea placeholder="请输入其他需要特别说明的求购信息" ng-model="paper.remark"></textarea>
                                                    </p>
                                                    <p class="submitBtn">
                                                        <button ng-click="editAdd()" class="changeFilter">修改</button>
                                                        <button data-dismiss="modal">取消</button>
                                                    </p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-sm btn-white" data-dismiss="modal"><i class="fa fa-share-square-o"></i> 关闭</button>
                                </div>
                            </ng-form>
                        </div>
                    </div>
                </div>

                <div class="modal fade" id="modal-read">
                    <div class="modal-dialog" style="width:1100px">
                        <div class="modal-content">
                            <ng-form name="checkForm" novalidate>
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                                    <h4 class="modal-title"><i class="fa fa-lg fa-edit text-success"></i>求购详情</h4>
                                </div>
                                <div class="modal-body">
                                    <div class="allBasicInfo">
                                        <!--<div class="billTypeMenu">
                                            <span ng-click="electricBill()" ng-class="{'accountType_action':filter.showElectricBill == 1}">电票求购</span>
                                            <span ng-click="paperBill()" ng-class="{'accountType_action':filter.showPaperBill == 1}">纸票求购</span>
                                        </div>-->
                                        <div class="billBasicInfo">
                                            <div class="lookingforInfo">
                                                <p class="basicInfoTitle">求购信息</p>
                                                <div class="inputInfo">
                                                    <p>
                                                        <span><label>票面金额</label>{{models.min_face_price}}&nbsp;&nbsp;———&nbsp;&nbsp;{{models.max_face_price}}万元</span>
                                                        <span><label>求购数量</label>{{models.want_numbe}}</span>
                                                    </p>
                                                    <p>
                                                        <span class="deadTime">
                                                            <label>到期时间</label>
                                                            <input type="text" ng-model="models.min_dead_date" readonly uib-datepicker-popup is-open="datepicker.bill_deadline_time1" ng-click="datepicker.bill_deadline_time1=!datepicker.bill_deadline_time1" required />
                                                            &nbsp;&nbsp;———&nbsp;&nbsp;
                                                            <input type="text" ng-model="models.max_dead_date" readonly uib-datepicker-popup is-open="datepicker.bill_deadline_time2" ng-click="datepicker.bill_deadline_time2=!datepicker.bill_deadline_time2" required />
                                                        </span>
                                                        <span><label>每十万扣款</label>{{models.ten_rate}}元</span>
                                                    </p>
                                                    <div class="acceptor">
                                                        <label style="float:left;width:95px;margin-top: 6px;">竞价方式</label>
                                                        <select class="form-control" ng-model="models.bidding_mode" style="width:12%;">
                                                            <option value="">全部</option>
                                                            <option value="3210">一口价</option>
                                                            <option value="3212">自由竞价</option>
                                                        </select>
                                                    </div>
                                                    <div class="acceptor">
                                                        <label>承兑机构</label>
                                                        <p class="col-md-12 col-sm-12 col-xs-12 filter-check">
                                                            {{ models.acceptor_type_id == null ? '不限' : models.acceptor_type_name | myfilter }}
                                                        </p>
                                                    </div>
                                                    <div class="acceptor">
                                                        <label>瑕疵要求</label>
                                                        <p class="col-md-12 col-sm-12 col-xs-12 filter-check">
                                                            <i ng-repeat="iten in models.bill_flaw_names" ng-if="models.bill_flaw_names.length > 0 && models.bill_flaw_names != ''">{{iten}}&nbsp;&nbsp;&nbsp;</i>
                                                            <i ng-if="models.bill_flaw_names.length == 0 || models.bill_flaw_names == ''">不限</i>
                                                        </p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="enterpriseInfo">
                                                <p class="basicInfoTitle">企业信息</p>
                                                <div class="inputInfo">
                                                    <p><label>企业名称:</label><input type="text" />{{models.enterprise_name}}</p>
                                                    <p>
                                                        <span><label>联系人姓名:</label>{{models.contact_name}}</span>
                                                        <span><label>联系方式:</label>{{models.contact_phone}}</span>
                                                    </p>
                                                </div>
                                            </div>
                                            <div class="remarkInfo">
                                                <p class="basicInfoTitle">备注说明</p>
                                                <div class="inputInfo">
                                                    <p>
                                                        {{models.remark}}
                                                        <!--<textarea placeholder="请输入其他需要特别说明的求购信息" ng-model="model.remark"></textarea>-->
                                                    </p>
                                                    <p style="float:left;" ng-if="models.bill_type_id == 102">
                                                        <label>交易地点:</label>
                                                        <div class="col-md-8 form-inline" style="padding-left:0;">
                                                            <select class="form-control width-150" ng-model="models.product_province_id" ng-options="item.id as item.address_name for item in provinceData" ng-change="provinceChange()"><option value="">省/直辖市</option></select>
                                                            <select class="form-control width-150" ng-model="models.product_location_id" ng-options="item.id as item.address_name for item in cityData"><option value="">市/区</option></select>
                                                        </div>
                                                    </p>
                                                    <p class="submitBtn">
                                                        <button data-dismiss="modal">取消</button>
                                                    </p>
                                                </div>
                                            </div>
                                        </div>
                                        <!--<div class="billBasicInfo" ng-if="filter.showPaperBill == 1">
                                            <div class="lookingforInfo">
                                                <p class="basicInfoTitle">求购信息</p>
                                                <div class="inputInfo">
                                                    <p>
                                                        <span><label>票面金额</label><input type="text" ng-model="paper.min_face_price" placeholder="最多100000" ng-change="paperChangeMinPrice()" />&nbsp;&nbsp;———&nbsp;&nbsp;<input type="text" ng-model="paper.max_face_price" placeholder="最多100000" ng-change="paperChangeMaxPrice()" />万元</span>
                                                        <span><label>求购数量</label><input type="number" ng-model="paper.want_numbe" /></span>
                                                    </p>
                                                    <p>
                                                        <span class="deadTime">
                                                            <label>到期时间</label>
                                                            <input type="text" ng-model="paper.min_dead_date" readonly uib-datepicker-popup is-open="datepicker.bill_deadline_time1" ng-click="datepicker.bill_deadline_time1=!datepicker.bill_deadline_time1" required />
                                                            &nbsp;&nbsp;———&nbsp;&nbsp;
                                                            <input type="text" ng-model="paper.max_dead_date" readonly uib-datepicker-popup is-open="datepicker.bill_deadline_time2" ng-click="datepicker.bill_deadline_time2=!datepicker.bill_deadline_time2" required />
                                                        </span>
                                                        <span><label>每十万扣款</label><input type="text" ng-model="paper.ten_rate" />元</span>
                                                    </p>
                                                    <div class="acceptor">
                                                        <label style="float:left;width:95px;margin-top: 6px;">竞价方式</label>
                                                        <select class="form-control" ng-model="paper.bidding_mode" style="width:12%;">
                                                            <option value="">全部</option>
                                                            <option value="3210">一口价</option>
                                                            <option value="3212">自由竞价</option>
                                                        </select>
                                                    </div>
                                                    <div class="acceptor">
                                                        <label>承兑机构</label>
                                                        <p class="col-md-12 col-sm-12 col-xs-12 filter-check">
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox check-one">
                                                                <input type="checkbox" ng-model="filter.acceptorTypeAll" ng-change="acceptorTypeChangeAll()"> <span>全部</span>
                                                            </label>
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox" ng-repeat="item in acceptorTypeData3">
                                                                <input type="checkbox" value="{{item.code}}" ng-model="item.checked" ng-change="acceptorTypeChange()"> <span>{{ item.constant_name }}</span>
                                                            </label>
                                                            <label class="col-md-1 col-sm-1 col-xs-1 checkbox" ng-repeat="item in acceptorTypeData4 track by $index">
                                                                <input type="checkbox" value="{{item.code}}" ng-model="item.checked" ng-change="acceptorTypeChange()"> <span>{{ item.constant_name | limitTo: 2 }}</span>
                                                            </label>
                                                        </p>
                                                    </div>
                                                    <div class="acceptor" style="height:72px;">
                                                        <label>瑕疵要求</label>
                                                        <p class="col-md-12 col-sm-12 col-xs-12 filter-check">
                                                            <label ng-repeat="item in billFlawData2" style="width:13%;">
                                                                <input type="checkbox" ng-model="item.checked" class="check-box" ng-click="billFlawChange2(item)"> {{ item.constant_name }}
                                                            </label>
                                                        </p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="enterpriseInfo">
                                                <p class="basicInfoTitle">企业信息</p>
                                                <div class="inputInfo">
                                                    <p><label>企业名称:</label><input type="text" ng-model="paper.enterprise_name" /></p>
                                                    <p>
                                                        <span><label>联系人姓名:</label><input type="text" ng-model="paper.contact_name" /></span>
                                                        <span><label>联系方式:</label><input type="text" ng-model="paper.contact_phone" /></span>
                                                    </p>
                                                    <p style="float:left;" ng-model="paper.bill_location_id">
                                                        <label>交易地点:</label>
                                                        <div class="col-md-8 form-inline" style="padding-left:0;">
                                                            <select class="form-control width-150" ng-model="paper.product_province_id" ng-options="item.id as item.address_name for item in provinceData" ng-change="provinceChange()"><option value="">省/直辖市</option></select>
                                                            <select class="form-control width-150" ng-model="paper.product_location_id" ng-options="item.id as item.address_name for item in cityData"><option value="">市/区</option></select>
                                                        </div>
                                                    </p>
                                                </div>
                                            </div>
                                            <div class="remarkInfo">
                                                <p class="basicInfoTitle">备注说明</p>
                                                <div class="inputInfo">
                                                    <p>
                                                        <textarea placeholder="请输入其他需要特别说明的求购信息" ng-model="paper.remark"></textarea>
                                                    </p>
                                                    <p class="submitBtn">
                                                        <button ng-click="updataPaperInfo()" class="changeFilter">发布</button>
                                                        <button data-dismiss="modal">取消</button>
                                                    </p>
                                                </div>
                                            </div>
                                        </div>-->
                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-sm btn-white" data-dismiss="modal"><i class="fa fa-share-square-o"></i> 关闭</button>
                                </div>
                            </ng-form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

